!
function(e, t) {
	var n = t(e);
	"undefined" != typeof define && (define.cmd || define.amd) && define(function() {
		return n
	})
}(window, function(e) {
	function t(t) {
		var n = 0;
		s = !1;
		for (var o = 0; o < t.length; o++) {
			var p = e.document.createElement("script");
			p.type = "text/javascript", p.async = !0, p.src = t[o], p.onload = function() {
				s = ++n >= t.length, s && h()
			}, e.document.getElementsByTagName("head").item(0).appendChild(p)
		}
	}
	function n() {
		if ("undefined" == typeof Messenger || "undefined" == typeof AqSCode) return void console.log("script onload not ready");
		var e = function() {},
			t = function() {},
			n = "",
			o = "",
			p = "inner",
			c = "",
			a = "",
			i = "";
		"open" != p && "" != o || (o = ""), m && m.start && "[object Function]" == Object.prototype.toString.call(m.start) && (e = function() {
			m.start && m.start()
		}), m && m.end && "[object Function]" == Object.prototype.toString.call(m.end) && (t = function() {
			m.end && m.end()
		}), m && m.uin && (o = m.uin), "open" == p && m && m.uid && (o = m.uid), m && m.capcd && (c = m.capcd), m && "undefined" != typeof m.showHeader && (n = m.showHeader ? "0" : "1"), m && m.themeColor && (a = m.themeColor), m && m.type && (i = m.type), $ = $ + "&cap_cd=" + c;
		var d = "?aid=549000929&captype=&protocol=http&clientype=1&disturblevel=&apptype=2&noheader=" + n + "&uid=" + o + "&color=" + a + "&showtype=" + i;
		"open" == p && (d = "?asig=&aid=549000929&captype=&protocol=http&clientype=1&disturblevel=&apptype=2&noheader=" + n + "&uid=" + o + "&color=" + a + "&showtype=" + i);
		var l = v({
			ele: g,
			params: d,
			cgi: "cap_union_new_show",
			uid: o,
			curenv: "inner",
			capcd: c,
			domain: r,
			gettype: $
		}, m || {});
		y = new AqSCode(l), y.listen(b), y.start(e), y.end(t), m && m.top && y.initPos({
			top: m.top
		}), m && m.left && y.initPos({
			left: m.left
		}), y.create()
	}
	function o() {
		return y.getTicket()
	}
	function p(e, t, o) {
		g = e, "function" == typeof t ? b = t : (m = t, b = m.callback && "function" == typeof m.callback ? m.callback : o), s ? n() : h = n
	}
	function c(e) {
		y && y.refresh && y.refresh(e)
	}
	function a() {
		y && y.destroy && y.destroy()
	}
	var i = "http",
		r = "https" == i ? "https://ssl.captcha.qq.com" : "http://captcha.qq.com",
		d = "inner";
	"open" == d && (r = "https" == i ? "https://captcha.guard.qcloud.com" : "http://captcha.guard.qcloud.com");
	var l = "http://captcha.gtimg.com/1",
		u = "" != l ? l : r,
		s = !1,
		f = "?aid=549000929&captype=&protocol=http&clientype=1&disturblevel=&apptype=2&uid=";
	"open" == d && (f = "?asig=&aid=549000929&captype=&protocol=http&clientype=1&disturblevel=&apptype=2&uid=");
	var y, $ = r + "/cap_union_new_gettype" + f,
		h = function() {},
		v = function(e, t, n) {
			n = n || !1;
			var o = {};
			for (var p in t) e[p] = t[p];
			if (n) {
				for (var p in e) o[p] = e[p];
				return o
			}
			return e
		};
	t([u + "/TCapMsg.js", "TCapIframe_m.js?v=1.0"]);
	var g, m, b = function() {};
	return e.capInit = p, e.capGetTicket = o, e.capRefresh = c, e.capDestroy = a, {
		capInit: p,
		capGetTicket: o,
		capRefresh: c,
		capDestroy: a
	}
});